package payroll.webapp

class EmpBankDetails {

	String bankAccountNum
	String bankName
	String bankCode
	

    static constraints = {
		employee(nullable:true)
		bankAccountNum(size:5..25)
		bankName(maxSize:50)
		bankCode(maxSize:15)
		
    }

	static mapping = {
		table "emp_bank_details"
	}
	
	static belongsTo = [employee:Employee]
}
